#include <QtGui>
#include "RequestDescriptor.h"
#include "DataModel.h"
#include "WidRawData.h"
#include "scImpl.h"

#define FCT "WidRawData::WidRawData"
WidRawData::WidRawData(QWidget * parent) :
	WidSybilView(parent)
{
	ui.setupUi(this);
	connect(DataModel::get(), SIGNAL(serverResponseSig()), this, SLOT(requestChangedSl()));
	requestChangedSl();
}

#undef FCT
#define FCT "WidRawData::~WidRawData"
WidRawData::~WidRawData()
{
}

#undef FCT
#define FCT "WidRawData::requestChangedSl"
void WidRawData::requestChangedSl()
{
	DataModel * dm(DataModel::get());
	QString tmp("-----------request-----------\n");
	tmp+=dm->getRawRequest();
	tmp+="-----------response----------\n";
	tmp+=dm->getRawData();
	ui.text->setText(tmp);
}
